Annotate the expression array as "nullable"
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 14 Sep 2020 16:00:23 +0000 (17:00 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 14 Sep 2020 16:00:23 +0000 (17:00 +0100)
commit595cc929e69c1c3e44c0f59a04d9b3f169463545
treec805e427478c466132252d26ca362ef02767d79a
parent27e6826860b57227d0befb315f66fa6e0b2d9efc
Annotate the expression array as "nullable"

While it's a bit dubious whether array+length annotations should be
marked as "nullable", we do this elsewhere in the API, so might as well
be consistent.

In practice, the array argument is only ever allowed to be NULL iff the
length argument is 0; annotations are static, so if somebody decides to
pass a NULL argument with a non-zero value, they will get a run time
critical error, instead of a compile time one, which is somewhat counter
to the point of annotating the API in the first place.

Fixes: #2923
gtk/gtkexpression.c